﻿<html>
<head>
    <link type="text/css" rel="stylesheet" href="{{ url_for('file_manager.static', filename='css/file_manager.css')}}"/>
</head>
<body>
<div class="file_manager">
    <div id="uploader" class='col-xs-12'>
        <div class="btn-group filemanager-path-group col-sm-7 col-xs-12" role="group">
            <button name="home" type="button" value="Home" title="{{ _('Home') }}" class="fa fa-home btn home"
                    tabindex="1"><span></span>
            </button>
            <button name="level-up" type="button" title="{{ _('Back') }}" value="LevelUp" class="btn fa fa-level-up level-up"
                    disabled tabindex="2"><span></span></button>
            <input id='file-input-path' class='input-path' title='' type="text" tabindex="3" autofocus/>

        </div>
        <div class="btn-group filemanager-btn-group" role="group">
            <div class="uploadresponse"></div>
            <input class="mode" name="mode" type="hidden" value="add"/>
            <input class="currentpath" name="currentpath" type="hidden"/>
            <button type="button" title="{{ _('Refresh') }}" class="btn fa fa-refresh refresh"
                    tabindex="4"></button>
            <button type="button" title="{{ _('Download File') }}" class="btn fa fa-download download"
                    disabled><span></span>
            </button>
            <button name="delete" type="button" title="{{ _('Delete File/Folder') }}" class="btn fa fa-trash delete"
                    disabled>
                <span></span></button>
            <button name="rename" type="button" title="{{ _('Rename File/Folder') }}" class="btn fa fa-pencil-square-o rename"
                    tabindex="5">
                <span></span></button>
            <button name="newfolder" type="button" title="{{ _('Create new folder') }}" value="New Folder"
                    class="btn fa fa-folder-open create" tabindex="8"><span></span></button>
            <button class="ON fa fa-th btn grid" type="button" title="{{ _('View as grid') }}" tabindex="9"><span></span></button>
            <button type="button" class="btn fa fa-list list" title="{{ _('View as table') }}" tabindex="10"><span></span></button>
        </div>
    </div>
    <div class="fileinfo">
        <span class="activity">
          <img src="{{ url_for('static', filename='js/generated/img/load-root.gif') }}"
               alt="{{ _('Loading...') }}">
        </span>
        <div class="file_listing"></div>
        <div class="upload_file dropzone"></div>
        <div class="allowed_file_types"></div>
        <div class='fm_dimmer'></div>
        <div class='delete_item'>
            <span>{{ _('Are you sure you want to delete this item?') }}</span>
        <span class="pull-right">
          <button type='button' class='btn btn_yes' tabindex="13">{{ _('Yes') }}</button>
          <button type='button' class='btn btn_no' tabindex="14">{{ _('No') }}</button>
        </span>
        </div>
        <div class='replace_file'>
            <span>{{ _('Are you sure you want to replace this file?') }}</span>
        <span class="pull-right">
          <button type='button' class='btn btn_yes' tabindex="15">{{ _('Yes') }}</button>
          <button type='button' class='btn btn_no' tabindex="16">{{ _('No') }}</button>
        </span>
        </div>
    </div>
    <script>
	require(['sources/generated/file_utils'], function() {
	    pgAdmin.FileUtils.init();
    });
    setTimeout(function(){ $('#file-input-path').focus(); }, 1000);
    </script>
</div>
</body>
</html>
